package com.lh.controller;

import com.lh.api.NacosDiscoveryDemoApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: linghao
 * @since: 2022/5/15
 */
@RestController
@RequestMapping("/nacosConsumerController")
public class NacosConsumerController {

    @Autowired
    private NacosDiscoveryDemoApi nacosDiscoveryDemoApi;

    @GetMapping("service")
    public String service(){
        return nacosDiscoveryDemoApi.serivce();
    }
}
